package com.member.provider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.member.dto.ChannelMember;
import com.member.provider.mapper.ChannelMemberMapper;
import com.member.provider.service.ChannelMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChannelMemberServiceImpl extends ServiceImpl<ChannelMemberMapper, ChannelMember> implements ChannelMemberService{

    @Autowired
    private ChannelMemberMapper channelMemberMapper;

    @Override
    public int deleteByPrimaryKey(String channelId) {
        return channelMemberMapper.deleteByPrimaryKey(channelId);
    }

    @Override
    public int insert(ChannelMember record) {
        return channelMemberMapper.insert(record);
    }

    @Override
    public int insertSelective(ChannelMember record) {
        return channelMemberMapper.insertSelective(record);
    }

    @Override
    public ChannelMember selectByPrimaryKey(String channelId) {
        return channelMemberMapper.selectByPrimaryKey(channelId);
    }

    @Override
    public int updateByPrimaryKeySelective(ChannelMember record) {
        return channelMemberMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ChannelMember record) {
        return channelMemberMapper.updateByPrimaryKey(record);
    }




}
